﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderManage.ascx.cs" Inherits="ElectronicSelling.UserControl.OrderManage" %>
<%@ Register Src="~/UserControl/OrderDetailManage.ascx" TagPrefix="uc" TagName="OrderDetailManage" %>


<div class="head_title">
    Đơn đặt hàng trong ngày
</div>
<asp:GridView ID="grvListOrder" runat="server" AutoGenerateColumns="False" Width="750px" CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="OrderId" OnRowDeleting="grvListOrder_RowDeleting">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField HeaderText="Số đơn hàng" DataField="OrderId" />
        <asp:TemplateField HeaderText="Tình trạng">
            <ItemTemplate>
                <%# Convert.ToBoolean(Eval("ApproveStatus"))? "Đã xử lý":"Đang chờ xử lý" %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Thời gian đặt mua" DataField="CreateDate" />
        <asp:HyperLinkField Text="Xem chi tiết" DataNavigateUrlFields="OrderId" DataNavigateUrlFormatString="~/CustomerManage.aspx?cusact=newestorder?orderId={0}" />
        <asp:CommandField DeleteImageUrl="~/Images/Remove.png" DeleteText="Xóa" ShowDeleteButton="True" />
    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <FooterStyle Font-Bold="True" ForeColor="White" />
    <HeaderStyle Font-Bold="True" ForeColor="White" />
    <PagerStyle HorizontalAlign="Left" />
    <RowStyle BackColor="#EFF3FB" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F5F7FB" />
    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
    <SortedDescendingCellStyle BackColor="#E9EBEF" />
    <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>

